home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / RINDEX.C < prev    next >
C/C++ Source or Header  |  1989-04-09  |  131b  |  13 lines

  1. rindex(s,c)
  2. char *s,c;
  3. {
  4.   int len;
  5.  
  6.   len = strlen(s)-1;
  7.  
  8.   while (len >= 0 && s[len] != c) len--;
  9.  
  10.   return(len);
  11. }
  12.  
  13.